
<div id="idPreview" class="preview-file">
	
</div>
	
<div class="form-list" style="float: left; width: 395px">
	<div class="box-right">
		<?php admin_cat_combo( $menu_cat, $cat_id, 1, 2 ); ?>
		<input type="button" name="button" onclick="submit_url( 'gallery/browser/' )" value="Hiển thị" class="button" />
        <input type="button" name="button" onclick="change_url( 'gallery/one/0' )" value="Tải ảnh" class="button" />
	</div>
		
	<div class="clear-all"></div>
	
	<table border="1" class="form-list-table">
		<tr>			
			<th class="title">Tên ảnh</th>
			<th width="90">Chọn</th>
		</tr>
		<?php 
		if ( $items ) {
			foreach ( $items as $item ) {
				echo '<tr>';										
					echo '<td class="title"><a href="javascript:previewfile(\''.$item['filename'].'\')">'.$item['name'].'</a></td>';
					echo '<td><a href="javascript:insertToPartent(\''.$item['filename'].'\')">Chọn</a></td>';
				echo '</tr>';
			}
		}else echo '<tr><td colspan="2" class="no-data">Chưa có file được đưa lên</td></tr>';	
		?>
	</table>
	
	<?php 
	if ( $paging ) {
		echo '<div class="phantrang">';
		echo $paging ;
		echo '</div>';
	}
	?>	
</div>

